import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

const purchaseRouter: RouteConfig = {
  path: '/purchase',
  component: Layout,
  redirect: 'noredirect',
  name: 'Purchase',
  meta: {
    title: 'purchase',
    icon: 'chart'
  },
  children: [
        {
          path: 'plan',
          component: () => import(/* webpackChunkName: "plan" */ '@/views/purchase/plan.vue'),
          name: 'Plan',
          meta: {
            title: 'plan',
            noCache: true
          }
        },
    {
      path: 'planAudit',
      component: () => import(/* webpackChunkName: "planAudit" */ '@/views/purchase/planAudit.vue'),
      name: 'Plan',
      meta: {
        title: 'planAudit',
        noCache: true
      }
    },
    {
      path:'receipt',
      component :()=>import(/* webpackChunkName: "recepit" */ '@/views/purchase/receipt.vue'),
      name : 'Receipt',
      meta: {
        title: 'receipt',
        noCache: true
      }
    }

  ]
}

export default purchaseRouter
